package Message;

public class Utility {
	public static int hashCode(String term) {
		int hash = 0;
		int len = term.length();
		for (int i = 0; i < len; i++) {
			hash = hash * 31 + term.charAt(i);
		}
		return hash;
	}
	
}
